package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * 品牌分类关联
 * 
 * @author zhangyang
 * @email 3103511060@qq.com
 * @date 2022-09-29 18:17:35
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {
    @Update("update pms_category_brand_relation set catelog_name=#{name} where catelog_id=#{catId} ")
    void updateCategory(@Param("catId") Long catId, @Param("name") String name);


//    @Select("select * from pms_category_brand_relation where brand_id=#{brandId} ")
//    List<CategoryBrandRelationEntity> catelogList(Long brandId);
}
